import request from '@/utils/request'

// 查询驾驶员消息列列表
export function listDriverMessage(query) {
  return request({
    url: '/driver/driverMessage/list',
    method: 'get',
    params: query
  })
}

// 查询驾驶员消息列详细
export function getDriverMessage(id) {
  return request({
    url: '/driver/driverMessage/' + id,
    method: 'get'
  })
}

// 新增驾驶员消息列
export function addDriverMessage(data) {
  return request({
    url: '/driver/driverMessage',
    method: 'post',
    data: data
  })
}

// 修改驾驶员消息列
export function updateDriverMessage(data) {
  return request({
    url: '/driver/driverMessage',
    method: 'put',
    data: data
  })
}

// 删除驾驶员消息列
export function delDriverMessage(id) {
  return request({
    url: '/driver/driverMessage/' + id,
    method: 'delete'
  })
}

// 导出驾驶员消息列
export function exportDriverMessage(query) {
  return request({
    url: '/driver/driverMessage/export',
    method: 'get',
    params: query
  })
}